package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author huangxin
 * @description
 * @date 2020/12/3
 */
@Mapper
public interface StockDao {
    void saveDamageList(@Param("damageList") DamageList damageList);

    void saveDamageListGoods(@Param("damageListGoodsList") List<DamageListGoods> damageListGoodsList);

    void saveOverflowList(@Param("overflowList") OverflowList overflowList);

    void saveOverflowListGoods(@Param("overflowListGoodsList") List<OverflowListGoods> overflowListGoodsList);

    List<Goods> getAllOutOfStockGoods();

    List<DamageList> getDamageListByTime(@Param("sTime") String sTime, @Param("eTime") String eTime);

    List<DamageListGoods> getDamageListGoodsById(@Param("damageListId") Integer damageListId);

    List<OverflowList> getOverflowListByTime(@Param("sTime") String sTime, @Param("eTime") String eTime);

    List<OverflowListGoods> getOverflowListGoodsById(@Param("overflowListId") Integer overflowListId);
}
